<?php
/**
 * Created by PhpStorm.
 * User: yy
 * Date: 2017/1/18
 * Time: 13:59
 */

namespace EWeiLink\JuPai\Http\Requests;

use App\Http\Requests\Request;
use EWeiLink\JuPai\RequestTrait;

class SupportRequest extends Request
{
    use RequestTrait;
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return $this->getRule();
    }

    private function init() {
        return [
            'env' => 'required|in:pro,test,dev',
        ];
    }

    private function auth() {
        return [
            'plannerId' => 'required',
            'clientId' => 'required',
        ];
    }
}
